All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.ServiceParameters

java.lang.Object
   |
   +----sun.server.ServiceParameters

public class ServiceParameters
extends Object
This class provides access to and modification of service configuration parameters.


Variable Index

 o DEFAULT_GRACE
 o DEFAULT_HOST
 o DEFAULT_MAX_THREADS
 o DEFAULT_MIN_THREADS
 o DEFAULT_NAME
 o DEFAULT_TIMEOUT
 o DEFAULT_VENDOR
 o DEFAULT_VERSION
 o grace
The number of seconds to wait during shutdown for handler threads to become idle.
 o group
The group to change to when running the service.
 o host
The host name of the service.
 o maxThreads
The maximum number of handler threads to run.
 o minThreads
The minimum number of handler threads to run.
 o name
The service name.
 o service
The service object.
 o timeout
The number of seconds to wait for a new connection before a handler thread times out.
 o user
The user to change to when running the service.
 o vendor
The service vendor.
 o version
The service version.

Constructor Index

 o ServiceParameters(Service)
Creates new service parameters.
 o ServiceParameters(Service, ExProperties)
Creates new service parameters initialized from properties.

Method Index

 o getDefaultHost()
Returns the default host name.
 o getGrace()
Returns the shutdown grace period in seconds.
 o getGroup()
Returns the service group name or id.
 o getHost()
Returns the service host name.
 o getMaxThreads()
Returns the maximum number of handler threads.
 o getMinThreads()
Returns the minimum number of handler threads.
 o getName()
Returns the service name.
 o getService()
Gets the service object.
 o getTimeout()
Returns the handler timeout in seconds.
 o getUser()
Returns the service user name or id.
 o getVendor()
Returns the service vendor.
 o getVersion()
Returns the service version.
 o load(ExProperties)
Loads initial values of parameters from properties.
 o load(ExProperties, boolean)
Loads parameters from properties.
 o reset()
Resets parameters to default values.
 o setGrace(int)
Sets the shutdown grace peiod in seconds.
 o setGroup(String)
Sets the service group name or id.
 o setHost(String)
Sets the service host name.
 o setMaxThreads(int)
Sets the maximum number of handler threads.
 o setMinThreads(int)
Sets the minimum number of handler threads.
 o setName(String)
Sets the service name.
 o setService(Service)
Sets the service object.
 o setTimeout(int)
Sets the handler timeout in seconds.
 o setUser(String)
Sets the service user name or id.
 o setVendor(String)
Sets the service vendor.
 o setVersion(String)
Sets the service version.

Variables

 o DEFAULT_NAME
 public static final String DEFAULT_NAME
 o DEFAULT_VERSION
 public static final String DEFAULT_VERSION
 o DEFAULT_VENDOR
 public static final String DEFAULT_VENDOR
 o DEFAULT_HOST
 public static final String DEFAULT_HOST
 o DEFAULT_MIN_THREADS
 public static final int DEFAULT_MIN_THREADS
 o DEFAULT_MAX_THREADS
 public static final int DEFAULT_MAX_THREADS
 o DEFAULT_TIMEOUT
 public static final int DEFAULT_TIMEOUT
 o DEFAULT_GRACE
 public static final int DEFAULT_GRACE
 o service
 protected Service service
The service object.

 o name
 protected String name
The service name.

 o version
 protected String version
The service version.

 o vendor
 protected String vendor
The service vendor.

 o user
 protected String user
The user to change to when running the service.

 o group
 protected String group
The group to change to when running the service.

 o host
 protected String host
The host name of the service.

 o minThreads
 protected volatile int minThreads
The minimum number of handler threads to run.

 o maxThreads
 protected volatile int maxThreads
The maximum number of handler threads to run.

 o timeout
 protected volatile int timeout
The number of seconds to wait for a new connection before a handler thread times out.

 o grace
 protected int grace
The number of seconds to wait during shutdown for handler threads to become idle.

Constructors

 o ServiceParameters
 public ServiceParameters(Service service)
Creates new service parameters.

 o ServiceParameters
 public ServiceParameters(Service service,
                          ExProperties props)
Creates new service parameters initialized from properties.

Methods

 o getService
 public Service getService()
Gets the service object.

 o setService
 public void setService(Service service)
Sets the service object.

 o getName
 public synchronized String getName()
Returns the service name.

 o setName
 public synchronized void setName(String name)
Sets the service name.

 o getVersion
 public synchronized String getVersion()
Returns the service version.

 o setVersion
 public synchronized void setVersion(String version)
Sets the service version.

 o getVendor
 public synchronized String getVendor()
Returns the service vendor.

 o setVendor
 public synchronized void setVendor(String vendor)
Sets the service vendor.

 o getUser
 public synchronized String getUser()
Returns the service user name or id.

 o setUser
 public synchronized void setUser(String user)
Sets the service user name or id.

 o getGroup
 public synchronized String getGroup()
Returns the service group name or id.

 o setGroup
 public synchronized void setGroup(String group)
Sets the service group name or id.

 o getHost
 public String getHost()
Returns the service host name.

 o getDefaultHost
 public String getDefaultHost()
Returns the default host name.

 o setHost
 public void setHost(String host)
Sets the service host name.

 o getMinThreads
 public int getMinThreads()
Returns the minimum number of handler threads.

 o setMinThreads
 public synchronized void setMinThreads(int minThreads)
Sets the minimum number of handler threads.

 o getMaxThreads
 public int getMaxThreads()
Returns the maximum number of handler threads.

 o setMaxThreads
 public synchronized void setMaxThreads(int maxThreads)
Sets the maximum number of handler threads.

 o getTimeout
 public int getTimeout()
Returns the handler timeout in seconds.

 o setTimeout
 public synchronized void setTimeout(int timeout)
Sets the handler timeout in seconds.

 o getGrace
 public synchronized int getGrace()
Returns the shutdown grace period in seconds.

 o setGrace
 public synchronized void setGrace(int grace)
Sets the shutdown grace peiod in seconds.

 o reset
 public synchronized void reset()
Resets parameters to default values.

 o load
 public synchronized void load(ExProperties props)
Loads initial values of parameters from properties.

 o load
 public synchronized void load(ExProperties props,
                               boolean updating)
Loads parameters from properties.


All Packages  Class Hierarchy  This Package  Previous  Next  Index